package com.kevin.thread;

/**
 * 用Runnable接口创建线程
 */
public class ImplementsRunnableTest {
    public static void main(String[] args) {
        System.out.println("当前线程是："+Thread.currentThread().getName());
        new Thread(new RunnableThread(),"fuckThread").start();
    }
}

class RunnableThread implements Runnable{
    @Override
    public void run() {
        System.out.println("当前线程是："+Thread.currentThread().getName());
    }
}
